/**
 * OutdoorArtist implementation
 */

#include "OutdoorArtist.h"

/////////////////////////////////////////////////

void kig::OutdoorArtist::draw(kig::Scene* scene, kig::Canvas* canvas)
{
	ASSERT(scene);
	ASSERT(canvas);
	
	_eye.setCanvas(canvas);

	while (_eye.moreRays()) {
		EyeRay r = _eye.nextRay();
		Vec4 sample;
		// Shoot and process ray
		// Store result
		(*canvas)(r.x, r.y)->samples.push_back(sample);
	}
}

